package com.takeoff.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2024/8/30 3:05 PM
 * @Param
 * @return
 * @Version: 1.0
 **/
@SpringBootApplication
@MapperScan(basePackages = {"com.takeoff.boot.mapper.**"})
@ComponentScan(basePackages = {"com.takeoff.boot.*"})
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
    }
    //为了打包springboot项目
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
